
package bo;

import dto.DTO_ChiTietHoaDon;
import java.util.ArrayList;
import mapper.MAP_ChiTietHoaDon;

public class BUS_ChiTietHoaDon {

    public boolean themChiTietHD(DTO_ChiTietHoaDon chitietHD)
    {
        MAP_ChiTietHoaDon mapCTHD = new MAP_ChiTietHoaDon();
        return mapCTHD.themChiTietHD(chitietHD);

    }
    public ArrayList<DTO_ChiTietHoaDon> loadDSCTHD(int MaHD)
    {
        MAP_ChiTietHoaDon mapCTHD = new MAP_ChiTietHoaDon();
        return mapCTHD.loadDSCTHD(MaHD);
    }
     public boolean CapNhatCTHD(int MaHD,int SoLuong,int MaSP)
    {
         MAP_ChiTietHoaDon mapCTHD = new MAP_ChiTietHoaDon();
         return mapCTHD.CapNhatCTHD(MaHD, SoLuong,MaSP);
     }
      public boolean XoaCTHD(int MaHD,int MaSP)
    {
          MAP_ChiTietHoaDon mapCTHD = new MAP_ChiTietHoaDon();
          return mapCTHD.XoaCTHD(MaHD,MaSP);
      }
     public boolean XoaCTHD(int MaHD)
    {
         MAP_ChiTietHoaDon mapCTHD = new MAP_ChiTietHoaDon();
         return mapCTHD.XoaCTHD(MaHD);
     }
}
